package com.thb.pay.mchant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.thb.pay.db.entity.SuperEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商户-账户表
 * </p>
 *
 * @author lucky
 * @since 2019-07-21
 */
@Data
@Accessors(chain = true)
@TableName("mch_account")
public class MchAccount extends SuperEntity<MchAccount> {

    private static final long serialVersionUID = 1L;

    /**
     * 商户ID
     */
    private Long mchId;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型:1-平台账户,2-私有账户
     */
    private Integer type;

    /**
     * 账户余额
     */
    private Long balance;

    /**
     * 不可用余额
     */
    private Long unBalance;

    /**
     * 保证金
     */
    private Long securityMoney;

    /**
     * 总收益
     */
    private Long totalIncome;

    /**
     * 总支出
     */
    private Long totalExpend;

    /**
     * 今日收益
     */
    private Long todayIncome;

    /**
     * 今日支出
     */
    private Long todayExpend;

    /**
     * 可结算金额
     */
    private Long settleAmount;

    /**
     * 账户状态,1-可用,0-停止使用
     */
    private Integer status;

    /**
     * 冻结金额
     */
    private Long frozenMoney;

    /**
     * 代付余额
     */
    private Long agentpayBalance;

    /**
     * 不可用代付余额
     */
    private Long unAgentpayBalance;
}
